package com.suarte.webapp.action;

import org.appfuse.service.GenericManager;

import java.io.Serializable;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Gcastillo
 * Date: Mar 14, 2011
 * Time: 7:52:36 PM
 * To change this template use File | Settings | File Templates.
 */
public class ResolutionList extends BasePage implements Serializable {
    private GenericManager resolutionManager;

    public void setResolutionManager(GenericManager resolutionManager) {
        this.resolutionManager = resolutionManager;
    }

    public ResolutionList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getResolutions() {
        return sort(resolutionManager.getAll());
    }
}